//
//  ServiceProtocolViewController.m
//  NOAHWM
//
//  Created by Ryan on 13-5-14.
//  Copyright (c) 2013年 Ryan. All rights reserved.
//

#import "ServiceProtocolViewController.h"

@interface ServiceProtocolViewController ()

@end

@implementation ServiceProtocolViewController

@synthesize protocolWebView;

#pragma mark - BaseViewController methods
- (void)leftItemTapped
{
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - UIViewController methods

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self setNaviTitle:@"服务条款及保密协议"];
    [self setLeftNaviItemWithTitle:nil imageName:@"Icon_Back"];
    
    NSString *path = [[NSBundle mainBundle] pathForResource:@"mianze" ofType:@"html"];
    NSString *htmlString = [[[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil] autorelease];
    [self.protocolWebView loadHTMLString:htmlString baseURL:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    if(self.isViewLoaded && !self.view.window)
    {
        self.view = nil;
        self.protocolWebView = nil;
    }
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    self.protocolWebView = nil;
}

- (void)dealloc
{
    [protocolWebView release];
    [super dealloc];
}
@end
